/* 个人中心 */
.user-center {
  .flex-box {
    display: flex;
    margin-top: 30px;

    .side-nav-zh {
      width: 120px;
    }

    .side-nav-en {
      width: 160px;
    }

    .side-nav {
      .item {
        padding-bottom: 15px;

        .tit {
          height: 28px;
          line-height: 28px;
          color: #333;
          font-weight: 700;
        }

        .item-a {
          display: block;
          height: 24px;
          line-height: 24px;
          color: #999;

          .number {
            color: #e1251b;
            font-family: arial;
            margin-left: 2px;
          }

          &:hover {
            color: #e1251b;
          }
        }

        .item-a.active {
          color: #e1251b;
          font-weight: 600;
        }
      }
    }

    .con-box {
      flex: 1;
      padding-left: 6px;
    }

    .con-box.apply-list {
      .goods-info {
        .sku {
          display: inline-block;
          margin-top: 5px;
          color: #999;
        }
      }
    }
  }

  .foot {
    margin-top: 30px;
  }
}

.to-balance {
  cursor: pointer;
}

/* 订单列表 */
.user-center {
  .order-list {
    .order-table {
      margin-bottom: 20px;

      .box {
        border: 1px solid #eee;
        width: 100%;

        td {
          padding: 15px 0;
          border-top: 1px solid #eee;
          text-align: center;
        }

        .bl {
          border-left: 1px solid #eee;
        }

        .box-tit {
          th {
            height: 32px;
            line-height: 32px;
            text-align: center;
            background: #f9f9f9;
            font-weight: 400;
            border: 1px solid #f9f9f9;
          }
        }

        .box-space {
          td {
            border-left: 1px solid #fff;
            border-right: 1px solid #fff;
            padding: 0;
            height: 14px;
          }
        }

        .pl {
          padding-left: 50px;
          text-align: left !important;
        }

        .pr {
          padding-right: 20px;
        }

        .box-hd {
          background: #f9f9f9;

          td {
            background: #f9f9f9;
            height: 32px;
            padding: 0 15px;
            line-height: 18px;
          }

          .time {
            float: left;
            margin-right: 40px;
            font-family: arial;
            color: #999;
          }

          .order-number {
            color: #999;
            float: left;
            text-align: left;

            .num {
              font-family: arial;
              color: #000;
              vertical-align: top;
              display: inline-block;
            }
          }

          .shop {
            display: block;
            float: left;
            margin-left: 40px;
            cursor: pointer;

            .shop-icon {
              width: 14px;
              height: 14px;
              vertical-align: top;
              display: inline-block;
              margin-top: 2px;
              margin-right: 5px;
              background: url(@/assets/images/icons.png) no-repeat -28px -458px;
            }

            &:hover {
              .shop-icon {
                background-position: -9px -458px;
              }

              color: #e1251b;
            }
          }

          .del {
            float: right;
            width: 14px;
            height: 14px;
            margin-top: 3px;
            background: url(@/assets/images/icons.png) no-repeat 0 -415px;
            cursor: pointer;

            &:hover {
              background-position: -19px -415px;
            }
          }
        }

        .box-tr {
          .goods-info {
            text-align: left;
            display: flex;
            padding-left: 15px;

            .img {
              width: 70px;
              height: 70px;
              font-size: 0;

              img {
                width: 100%;
                height: 100%;
                cursor: pointer;
              }
            }

            .name-sku {
              display: flex;
              flex-direction: column;
              justify-content: space-between;
              word-break: break-word;
              flex: 1;
              margin: 0 15px;

              .name {
                max-height: 36px;
                line-height: 18px;
                -webkit-box-orient: vertical;
                -webkit-line-clamp: 2;
                overflow: hidden;
                text-overflow: ellipsis;

                &:hover {
                  color: #e1251b;
                  cursor: pointer;
                }
              }

              .sku {
                display: flex;
                color: #999;
                justify-content: space-between;
              }

              .sku-info-con {
                display: flex;
                align-items: center;

                .order-sgin {
                  display: inline-block;
                  padding: 3px 6px;
                  background-color: #e1251b;
                  color: #fff;
                  margin-top: 6px;
                  font-size: 12px;
                  border-radius: 2px;
                }

                .order-sgin.prod-sgin {
                  margin-top: 0;
                  padding: 1px 3px;
                  border: 1px solid #e1251b;
                  color: #e1251b;
                  background: #fff;
                }

                .sku {
                  max-width: 60%;
                  margin-right: 10px;
                  color: #999;
                  display: -webkit-box;
                  -webkit-box-orient: vertical;
                  -webkit-line-clamp: 1;
                  overflow: hidden;
                  text-overflow: ellipsis;
                }
              }
            }
          }

          .gift-group {
            text-align: left;
            padding-left: 2%;
            padding-top: 1%;

            .gift-item {
              display: flex;

              .giveaway-item-name {
                display: -webkit-box;
                -webkit-line-clamp: 2;
                -webkit-box-orient: vertical;
                overflow: hidden;
                text-overflow: ellipsis;
                word-break: break-all;
                max-width: 500px;
              }

              .giveaway-item-sku-count {
                min-width: 100px;
                padding-left: 2%;
                color: #999;
              }
            }
          }

          .goods-number {
            line-height: 20px;
            color: #999;
          }

          .amount {
            line-height: 20px;
            color: #999;

            .price {
              display: block;
              color: #000;
            }
          }

          .status {
            line-height: 20px;
            color: #999;

            .no-finish {
              color: #e1251b;
            }

            .order-detail {
              color: #000;

              &:hover {
                color: #e1251b;
              }
            }
          }

          .action {
            line-height: 20px;
            color: #999;

            .action-btn {
              display: block;
              background: #fff;
              border-radius: 2px;
              width: 96px;
              line-height: 18px;
              padding: 2px 0;
              margin: 3px auto;
              text-align: center;
            }

            .action-btn.default {
              background: #f9f9f9;
              border: 1px solid #eee;
              color: #000;

              &:hover {
                background: #fff;
                color: #e1251b;
                border: 1px solid #e1251b;
              }
            }

            .action-btn.active {
              color: #e1251b;
              border: 1px solid #e1251b;

              &:hover {
                background: #e1251b;
                color: #fff;
              }
            }

            .action-a {
              color: #000;

              &:hover {
                color: #e1251b;
              }
            }
          }
        }
      }
    }
  }
}

/* 订单列表 end */

/* 导航 */
.user-center {
  .uc-nav {
    border-bottom: 1px solid #eee;
    margin: 15px 0;
    display: flex;

    .nav-box {
      position: relative;
      bottom: -1px;
      flex: 1;
      display: flex;

      .nav-item {
        position: relative;
        border-bottom: 1px solid #eee;
        cursor: pointer;

        &:hover {
          color: #e1251b;
        }

        .text {
          display: inline-block;
          line-height: 1;
          padding: 0 20px 12px;
          font-size: 14px;
          -webkit-transition: all 0.2s ease;
          -moz-transition: all 0.2s ease;
          -o-transition: all 0.2s ease;
          transition: all 0.2s ease;
        }

        .line {
          background-color: #eee;
          width: 1px;
          height: 14px;
          font-size: 0;
          position: absolute;
          top: 2px;
          right: 0;
        }

        &:last-child {
          .line {
            width: 0;
          }
        }

        .number {
          color: #e1251b;
          margin-left: 5px;
          font-family: arial;
          font-size: 14px;

        }
      }

      .nav-item.active {
        color: #e1251b;
        border-bottom: 1px solid #e1251b;
      }
    }
  }
}

/* 导航 end */

/* 搜索 */
.user-center {
  .uc-serach {
    margin-bottom: 15px;
    display: flex;

    .left {
      flex: 1;
      display: flex;

      .select-item {
        position: relative;
        height: 28px;
        z-index: 10;
        margin-right: 10px;

        .tit {
          cursor: pointer;
          display: block;
          width: 106px;
          border: 1px solid #eee;
          padding: 0 28px 0 12px;
          line-height: 26px;
          color: #777;
          position: relative;
          -webkit-transition: all 0.2s ease;
          -moz-transition: all 0.2s ease;
          -o-transition: all 0.2s ease;
          transition: all 0.2s ease;

          &::after {
            position: absolute;
            right: 10px;
            top: 11px;
            width: 0;
            height: 0;
            content: ' ';
            border: 5px solid transparent;
            border-top: 5px solid #bcbcbc;
            border-radius: 2px;
          }
        }

        &:hover {
          .tit {
            color: #e1251b;

            &::after {
              border-top: 5px solid #e1251b;
            }
          }

          .select {
            display: block;
          }
        }

        .select {
          position: relative;
          top: -1px;
          left: 0;
          border-width: 0 1px 1px;
          border-style: solid;
          border-color: #eee;
          background-color: #fff;
          line-height: 28px;
          font-size: 12px;
          color: #999;
          text-align: center;
          box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);
          display: none;

          .s-item {
            display: block;
            padding: 2px 15px;
            cursor: pointer;
            -webkit-transition: all 0.2s ease;
            -moz-transition: all 0.2s ease;
            -o-transition: all 0.2s ease;
            transition: all 0.2s ease;
            text-align: left;

            &:hover {
              color: #e1251b;
              background: #f9f9f9;
            }
          }
        }
      }

      .action-btn {
        height: 28px;
        display: flex;

        .batch {
          padding: 0 12px;
          color: #777;
          border: 1px solid #eee;
          height: 26px;
          line-height: 26px;
          margin-right: 10px;

          &:hover {
            color: #e1251b;
            border-color: #e1251b;
          }
        }

        .batch-box {
          display: none;
          vertical-align: top;
          line-height: 28px;
          color: #777;

          .check {
            margin-right: 10px;
            cursor: pointer;

            .checkbox {
              margin-top: 7px;

              &::before {
                border-color: #aaa;
              }
            }

            &:hover {
              .checkbox.default {
                &::before {
                  border-color: #e1251b;
                }
              }

              .text {
                color: #e1251b;
              }
            }

            .text {
              margin-left: 3px;
              -moz-transition: all 0.2s;
              -webkit-transition: all 0.2s;
              -o-transition: all 0.2s;
              transition: all 0.2s;
            }
          }

          .cancel-collection {
            cursor: pointer;

            .icon {
              display: inline-block;
              vertical-align: top;
              width: 14px;
              height: 14px;
              margin-top: 7px;
              background: url(@/assets/images/icons.png) no-repeat 0 -415px;
            }

            &:hover {
              .icon {
                background-position: -19px -415px;
              }

              .text {
                color: #e1251b;
              }
            }

            .text {
              margin-left: 3px;
              -moz-transition: all 0.2s;
              -webkit-transition: all 0.2s;
              -o-transition: all 0.2s;
              transition: all 0.2s;
            }
          }
        }
      }

      .action-btn.active {
        .batch-box {
          display: flex;
          align-items: center;
        }
      }
    }

    .right {
      display: flex;
      align-items: center;

      .input {
        width: 222px;
        border: 1px solid #eee;
        height: 26px;
        line-height: 26px;
        font-size: 12px;
        padding: 0 5px;
      }

      .search {
        padding: 0 10px;
        height: 28px;
        line-height: 28px;
        color: #fff;
        background-color: #e1251b;
        display: inline-block;
        vertical-align: top;
        margin: 0 10px;

        &:hover {
          opacity: 0.8;
        }
      }

      .search-value {
        position: relative;
        height: 28px;
        z-index: 10;
        margin-right: 10px;

        .ordernum {
          cursor: pointer;
          display: block;
          width: 100px;
          border: 1px solid #eee;
          padding: 0 17px 0 12px;
          line-height: 26px;
          color: #777;
          position: relative;
          -webkit-transition: all 0.2s ease;
          -moz-transition: all 0.2s ease;
          -o-transition: all 0.2s ease;
          transition: all 0.2s ease;

          &::after {
            position: absolute;
            right: 10px;
            top: 11px;
            width: 0;
            height: 0;
            content: ' ';
            border: 5px solid transparent;
            border-top: 5px solid #bcbcbc;
            border-radius: 2px;
          }
        }

        &:hover {
          .ordernum {
            color: #e1251b;

            &::after {
              border-top: 5px solid #e1251b;
            }
          }
        }

        .options {
          position: relative;
          top: -1px;
          left: 0;
          border-width: 0 1px 1px;
          border-style: solid;
          border-color: #eee;
          background-color: #fff;
          line-height: 28px;
          font-size: 12px;
          color: #999;
          text-align: center;
          box-shadow: 0 5px 5px rgba(0, 0, 0, 0.1);

          .options-item {
            display: block;
            padding: 2px 15px;
            cursor: pointer;
            -webkit-transition: all 0.2s ease;
            -moz-transition: all 0.2s ease;
            -o-transition: all 0.2s ease;
            transition: all 0.2s ease;
            text-align: left;

            &:hover {
              color: #e1251b;
              background: #f9f9f9;
            }
          }
        }
      }
    }
  }
}

/* 搜索 end */

.message-chat {
  position: relative;
}

/* 客服信息小红点 */
.message-radio {
  border-radius: 50%;
  width: 5px;
  height: 5px;
  background-color: red;
  display: inline-block;
  position: absolute;
  top: 2px;
  left: 48px;
}

/* 个人中心 end */
